import React from "react";
// 新
import ReactDOM from "react-dom/client";

import "./index.css";

function Parent(props) {
  return <div className="parent">Parent{props.children}</div>;
}
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <Parent>
    <div className="child">Child</div>
    <div className="child">Child2</div>
    <div className="child">Child3</div>
  </Parent>
);
